package com.zkq.graduate.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author zhangkaiqiang
 * @Date 2019/12/1  13:50
 * @Description TODO
 *
 * 权限实体类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Permission {

	private Integer id;

	private String permissionName;

	/**
	 * 该资源的访问路径
	 */
	private String url;

	/**
	 * 备注
	 */
	private String remark;


	/**
	 * 当资源为系统菜单时,当前菜单的子菜单
	 */
	private List<Permission> childPermission;


	/**
	 * 当资源为系统菜单时,当前资源的父资原id
	 */
	private Integer parentId;
}
